import {Component, OnInit} from '@angular/core';
declare var $: any; ;
@Component({
  selector: 'app-table',
  templateUrl: './table.component.html',
  styleUrls: ['./table.component.scss']
})
export class TableComponent implements OnInit {

  constructor() {
  }

  ngOnInit() {

    $(function () {
      $('#example').DataTable();
    })
  }

}
